package com.han.yuhannews.model;
/*
 * 实体类
 * */
public class Category {
	//类型编码
	private int cid;
	//类型名称
	private String title;
	//类型次数
	private int sequnce;
	
	
	public Category() {
		super();
	}
	
	public Category(int cid, String title) {
		super();
		this.cid = cid;
		this.title = title;
	}
	public Category(int cid, String title, int sequnce) {
		super();
		this.cid = cid;
		this.title = title;
		this.sequnce = sequnce;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getSequnce() {
		return sequnce;
	}
	public void setSequnce(int sequnce) {
		this.sequnce = sequnce;
	}

	//没有这个toString的方法就只能显示一个映射路径，要显示新闻类型的名称就要使用这个toString方法
	@Override
	public String toString() {
		return title;
	}

	
}
